<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<title>翔天信贷软件管理系统</title>
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/reset.css" />
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/main.css" />
<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="css/main-ie6.css" /><![endif]-->
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/style.css" />
<link rel="stylesheet" media="screen,projection" type="text/css"
	href="css/mystyle.css" />
<link href="css/grid/grid.css" type="text/css" rel="stylesheet"
	media="screen" />
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/aa.js"></script>
<script type="text/javascript" src="js/cal.js"></script>
<style>
a{text-decoration: none;}
</style>

</head>
<body>
	<html:form action="writeReceipt" method="post">
		<html:hidden property="tableID" styleId="tableID" value="" />
		<html:hidden property="toNotPay" styleId="toNotPay" />
		<html:hidden property="callMethod" styleId="callMethod" />



		<%@include file="/front/head.jsp"%>


			<div id="content" class="row">
			<br />
				<div class="column grid_16">
					<table width="100%" border="0" cellspacing="0" cellpadding="0"	style="">
						<tr>
							<td>姓名：<html:text property="userVO.user_name_search" maxlength="10"
									styleId="userVO.user_name_search" styleClass="text-input" />&nbsp;&nbsp;&nbsp;身份证号：<html:text
									property="userVO.user_sn_search"
									styleId="userVO.user_sn_search" styleClass="text-input" maxlength="18" />&nbsp;&nbsp;&nbsp;<html:submit
									property="cz" styleClass="input-submit">查找</html:submit>
							</td>
						</tr>
					</table>

					<br />
				</div>
				</div>

			<aa:zone name="listZone">

				<%@include file="receipt_head.jsp"%>


				
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
							<th>姓名</th>
							<th>身份证&nbsp;&nbsp;</th>
							<th>联系方式</th>
							<th>所属区域</th>
							<th>车型</th>
							<th>车价</th>


							<logic:notEqual value="7" name="buser" property="roleid">
								<th>首付款</th>
								<th>贷款额</th>
								<logic:notEqual value="9" name="buser" property="roleid">
									<th>单据提交人</th>
								</logic:notEqual>


								<th>提交时间</th>

								<th>操作</th>
							</logic:notEqual>


							<logic:equal value="7" name="buser" property="roleid">
								<th>保证金</th>
								<th>垫款考核</th>
								<th>GPS考核</th>
								<th>挂牌考核</th>
								<th>放款考核</th>
								<th>处理单据</th>
							</logic:equal>


						</tr>
							<nested:iterate id="user" name="dateReturnList" indexId="dindex">
							<tr>
								<td><nested:write name="user" property="user_name" />
								</td>
								<td><nested:write name="user" property="user_sn" />
								</td>
								<td><nested:write name="user" property="user_phone" />
								</td>
								<td><nested:write name="user" property="area" />
								</td>
								<td><nested:write name="user" property="car" />
								</td>
								<td><nested:write name="user" property="jg" />
								</td>

								<logic:notEqual value="7" name="buser" property="roleid">
									<td><nested:write name="user" property="shoufu" />
									</td>
									<td><nested:write name="user" property="dke" />
									</td>
									<logic:notEqual value="9" name="buser" property="roleid">
										<td><nested:write name="user" property="djr" />
										</td>
									</logic:notEqual>
									<td><nested:write name="user" property="log_time" /></td>
									<td class="submit"><logic:notEqual value="9" name="buser"
											property="roleid">
											<input type="button" id="update" style="width: 40px;"
												value="审核"
												onclick="toEditUser('<nested:write name="user" property="id"/>')">
										</logic:notEqual> <logic:equal value="9" name="buser" property="roleid">
											<a
												href="?callMethod=getUserInfo&tableID=<nested:write name="user" property="id"/>">详情</a>
										</logic:equal></td>
								</logic:notEqual>
								<logic:equal value="7" name="buser" property="roleid">
									<td><nested:empty name="user" property="bzj_true">
								等待银联维护
							</nested:empty> <nested:notEmpty name="user" property="bzj_true">
											<nested:write name="user" property="bzj_true" />
										</nested:notEmpty></td>
									<td><nested:empty name="user" property="dk2">
											<a id="dktx<%=dindex%>" href=""><input type="button"
												value="提醒" style="width: 60px;" />
											</a>&nbsp;&nbsp;
							</nested:empty> <nested:notEmpty name="user" property="dk2">
								开始：<nested:write name="user" property="dk1" />
											<br>
								要求：<nested:write name="user" property="dk2" />
											<br>
											<nested:empty name="user" property="dk3">
											<nested:empty  name="user" property="gp">
											等待办公室反馈
											</nested:empty>
												<nested:notEmpty  name="user" property="gp">
												<a id="dktxc<%=dindex%>" href=""><input type="button"
													value="完成考核" style="width: 60px;" />
												</a>&nbsp;&nbsp;
												</nested:notEmpty>
								</nested:empty>
											<nested:notEmpty name="user" property="dk3">
								
								结束：<nested:write name="user" property="dk3" />

											</nested:notEmpty>
										</nested:notEmpty></td>
									<td><nested:empty name="user" property="gps2">
											<a id="gpstx<%=dindex%>" href=""><input type="button"
												value="提醒" style="width: 60px;" />
											</a>&nbsp;&nbsp;
							</nested:empty> <nested:notEmpty name="user" property="gps2">
								开始：<nested:write name="user" property="gps1" />
											<br>
								要求：<nested:write name="user" property="gps2" />
											<br>
											<nested:notEmpty name="user" property="gps4">
												<nested:empty name="user" property="gps3">
													<a id="gpstxc<%=dindex%>" href=""><input type="button"
														value="完成考核" style="width: 60px;" />
													</a>&nbsp;&nbsp;
									</nested:empty>
											</nested:notEmpty>

											<nested:empty name="user" property="gps4">
								等待办公室反馈
								</nested:empty>

											<nested:notEmpty name="user" property="gps3">
									
									结束：<nested:write name="user" property="gps3" />
											</nested:notEmpty>
										</nested:notEmpty></td>
									<td><nested:empty name="user" property="gp">
							等待办公室反馈
							</nested:empty> <nested:notEmpty name="user" property="gp">
								开始：<nested:write name="user" property="gp" />
											<br>
											<nested:notEmpty name="user" property="gp2">
								结束：<nested:write name="user" property="gp2" />

											</nested:notEmpty>

											<nested:empty name="user" property="gp2">
												<a id="gptxc<%=dindex%>" href=""><input type="button"
													value="完成考核" style="width: 60px;" />
												</a>&nbsp;&nbsp;
								</nested:empty>


										</nested:notEmpty></td>

									<td><nested:empty name="user" property="fk2">
											<a id="fktx<%=dindex%>" href=""><input type="button"
												value="提醒" style="width: 60px;" />
											</a>&nbsp;&nbsp;
							</nested:empty> <nested:notEmpty name="user" property="fk2">
							开始：<nested:write name="user" property="fk1" />
											<br>
							要求：<nested:write name="user" property="fk2" />
											<br>
											<nested:empty name="user" property="fk3">
												<a id="fktxc<%=dindex%>" href=""><input type="button"
													value="完成考核" style="width: 60px;" />
												</a>&nbsp;&nbsp;
								</nested:empty>
											<nested:notEmpty name="user" property="fk3">
								
								结束：<nested:write name="user" property="fk3" />

											</nested:notEmpty>
										</nested:notEmpty></td>


									<td><input type="button" id="update" style="width: 60px;"
										value="处理单据"
										onclick="toEditUser('<nested:write name="user" property="id"/>')">
									</td>

									<script>
							$("#dktx<%=dindex%>").wBox({title: "发送垫款提醒",requestType:"iframe",iframeWH:{width:350,height:260},target:"writeReceipt.do?callMethod=toUpdatedktx&tableID=<nested:write name="user" property="id"/>"});
							$("#dktxc<%=dindex%>").wBox({title: "完成垫款业务考核",requestType:"iframe",iframeWH:{width:350,height:100},target:"writeReceipt.do?callMethod=toCompletedktx&tableID=<nested:write name="user" property="id"/>"});
							$("#gpstx<%=dindex%>").wBox({title: "发送GPS提醒",requestType:"iframe",iframeWH:{width:350,height:260},target:"writeReceipt.do?callMethod=toUpdateGPStx&tableID=<nested:write name="user" property="id"/>"});
							$("#gpstxc<%=dindex%>").wBox({title: "完成GPS业务考核",requestType:"iframe",iframeWH:{width:350,height:100},target:"writeReceipt.do?callMethod=toCompleteGPStx&tableID=<nested:write name="user" property="id"/>"});
							$("#gptxc<%=dindex%>").wBox({title: "完成挂牌业务考核",requestType:"iframe",iframeWH:{width:350,height:100},target:"writeReceipt.do?callMethod=toCompleteGptx&tableID=<nested:write name="user" property="id"/>"});
							$("#fktx<%=dindex%>").wBox({title: "发送放款提醒",requestType:"iframe",iframeWH:{width:350,height:260},target:"writeReceipt.do?callMethod=toUpdateFktx&tableID=<nested:write name="user" property="id"/>"});
							$("#fktxc<%=dindex%>").wBox({title : "完成放款业务考核",requestType : "iframe",iframeWH : {width : 350,height : 100},target : "writeReceipt.do?callMethod=toCompleteFktx&tableID=<nested:write name="user" property="id"/>"});
									</script>
								</logic:equal>




							</tr>
						</nested:iterate>

						</table>
						<br />
					</div>
					</div>



			
				<%@include file="/front/nav.jsp"%>
		</aa:zone>
	</html:form>

	<script type="text/javascript">
		function deleteUser(name, id) {
			if (confirm("确定要删除" + name + "的资料吗？,删除后不可恢复，请再次确认！")) {
				$('#callMethod').val('deleteUser');
				$('#tableID').val(id);
				$("form").submit();
			}
		}

		function toEditUser(id) {
			$('#callMethod').val('toEditUser');
			$('#tableID').val(id);
			$("form").submit();
		}
		function getUserInfo(id) {
			$('#callMethod').val('getUserInfo');
			$('#tableID').val(id);
			$("form").submit();
		}

		function getUserInfobyNotPay(id) {
			$('#callMethod').val('getUserInfo');
			$('#toNotPay').val('1');

			$('#tableID').val(id);
			$("form").submit();
		}

		function refresh() {
			ajaxAnywhere.submitAJAX("returnToList", "listZone");
		}
		$(function() {
			function refresh() {
				ajaxAnywhere.submitAJAX("returnToList", "listZone");
			}
			setInterval(refresh, 5000);// 注意函数名没有引号和括弧！
		});

		ajaxAnywhere.showLoadingMessage = function() {
		}
		
		$(document).ready(function(){
			refresh();
			
		})
		
	</script>


</body>
</html>